﻿using System;
using DuckGame1._0.Ｄuck;

namespace DuckGame1._0
{
    class Program
    {
        static void Main(string[] args)
        {
            //调用野鸭
            var md=new MallardDuck();
            Console.WriteLine(md.Display() + "-" + md.Swim() + "-" + md.FlyBehavior.Fly() + "-" +
                              md.QuackBehavior.Quack());
             //调用红头
            var rd = new RedHeadDuck();
            Console.WriteLine(rd.Display() + "-" + rd.Swim() + "-" + rd.FlyBehavior.Fly() + "-" +
                              rd.QuackBehavior.Quack());
            //调用木头鸭
            var wd = new WodenDuck();
            Console.WriteLine(wd.Display() + "-" + wd.Swim() + "-" + wd.FlyBehavior.Fly() + "-" +
                              wd.QuackBehavior.Quack());
            //调用变形金刚鸭
            var td = new TransFormerDuck();
            Console.WriteLine(td.Display() + "-" + td.Swim() + "-" + td.FlyBehavior.Fly() + "-" +
                              td.QuackBehavior.Quack());
        }
    }
}
